import { SETTING } from './api'
import { METHOD, request } from '@/utils/request'

export async function settingDetail(id) {
  return request(SETTING + '/queryOne', METHOD.GET, { id: id })
}

export async function settingUpdate(data) {
  return request(SETTING + '/update', METHOD.POST, data)
}

export default { settingDetail, settingUpdate }